<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
	<body>
		<div>delphi</div>
		<div id="py">python</div>
		<div class="java">java</div>
		<p>css</p>
		<span>html</span>
		<div id="h1"><span>子元素</span></div>
	</body>
	<script type="text/javascript">
		$(function(){
			$("div").css('color','red');
			$("#py").css('color','pink');
			$(".java").css('color','blue');
			$("p,span").css('color','yellow');
		})
	</script>
</html>
